package com.shijichaoxing.service;

import com.shijichaoxing.entity.Candidate;
import com.shijichaoxing.utils.PageParam;

/**
 * @author zj
 */
public interface CandidateService {

    boolean addCandidate(Candidate candidate);

    boolean updateCandidate(Candidate candidate);

    Candidate findCandidateById(Integer id);

    void findCandidateByPage(PageParam<Candidate> pageParam, String indexName, boolean isAsc);

    boolean deleteById(Integer id);
}